package com.gl.goods.ui.main.mvp.me;

import com.gl.goods.base.BaseBean;
import com.gl.goods.httpclint.HttpApi;
import com.gl.goods.net.RetrofitClient;
import com.gl.goods.ui.login.bean.UserInfoBean;

import io.reactivex.Flowable;

/**
 * Time; 2020/3/15
 * Author: hmc
 * Description:
 */
public class UserFragmentModel implements UserFragmentContract.Model {
    /**获取用户个人信息*/
    @Override
    public Flowable<UserInfoBean> getUserInfo() {
        return RetrofitClient.getInstance().getApi(HttpApi.baseUrl).getUserInfo();
    }
    /**退出登录*/
    @Override
    public Flowable<BaseBean> logout() {
        return RetrofitClient.getInstance().getApi(HttpApi.baseUrl).logout();
    }
}
